﻿using Application.AppService.IConfig;
using Domain.Entity.Config;
using Domain.Repository.IConfig;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.AppService.Config
{
    public class Config_public_charAppService : IConfig_public_charAppService
    {
        private readonly IConfig_public_charRepository cpc;

        public Config_public_charAppService(IConfig_public_charRepository cpc)
        {
            this.cpc = cpc;
        }

        public Task<int> AddEIAsync(Config_public_char config_Public_Char)
        {
            return cpc.AddEIAsync(config_Public_Char);
        }

        public Task<int> DeleteEIAsync(int Id)
        {
            return cpc.DeleteEIAsync(Id);
        }

        public Task<List<Config_public_char>> GetCPCAstnc()
        {
            return cpc.GetCPCAstnc();
        }

        public Task<List<Config_public_char>> GetCPCAttributeKindAsync(string Attribute_kind)
        {
            return cpc.GetCPCAttributeKindAsync(Attribute_kind);
        }
    }
}
